﻿using FileConvert.AsposeOper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FileConvert
{
    /// <summary>
    /// ppt文件转换成html目录
    /// </summary>
    public class PPTFolderConvert : IConvert
    {
        private string _formFile = "";
        private string _toFile = "";
        string _ext = "";
        public PPTFolderConvert(string fromFile, string toFile)
        {
            _formFile = fromFile;
            _toFile = toFile;
            _ext = System.IO.Path.GetExtension(fromFile);
        }
        public string SupportFormat
        {
            get
            {
                return ".ppt;.pptx;";
            }
        }

        public bool Convert()
        {
            bool result = false;
            PPTFile ppt = new PPTFile(_formFile, _toFile);
            ppt.ConvertSingleSlideSVG();
            result = true;
            return result;
        }
    }
}
